
<?

require_once ("application.list.inc");

global $_GLOBAL_DBH;
global $_OBJECT_IFACE_PANEL;

$_OBJECT_IFACE_PANEL = _app_create_iface_panel ();
$_OBJECT_IFACE_DISPLAY->insert_container ($_OBJECT_IFACE_PANEL);

$indexes = array (
	title=>array (label=>"Title",order=>"DEFAULT",wrapper=>"vmc_icon_note"),
	details=>array (label=>"Details",order=>"DEFAULT"),
	status=>array (label=>"Status",order=>"DEFAULT",
			values=>array (
				"active",label=>"Active",
				"inactive"=>"Inactive",
				"hold"=>"Hold",
				"suspended"=>"Suspended",
				"processing"=>"Processing",
				"new"=>"New",
				"assigned"=>"Assigned",
				"started"=>"Started",
				"stopped"=>"Stopped",
				"complete"=>"Complete",
			)),
	cdate=>array (label=>"Create Date",order=>"DEFAULT",wrapper=>"vmc_icon_date"),
);

$object_ctl = "/admin/users/notes/fs_notes.php?fs_action=view&fs_tab=main&";
$link_options = "";
$list_options = array (
	array (
		label=>"Create A New Note",
		link=>"fs_notes.php?fs_action=addnew"
	),
);

$_OBJECT_IFACE_LIST = _app_create_list_object (array (
                db_conn=>$_GLOBAL_DBH,
                indexes=>$indexes,
		list_count=>"SELECT COUNT(*) FROM notes WHERE user_id={$_APP_SESSION_USER->id}",
		list_select=>"SELECT * FROM notes WHERE user_id={$_APP_SESSION_USER->id}",
                list_id=>"lc_notes",
		list_title=>"&nbsp;&raquo;&nbsp;Note List",
                list_options=>$list_options,
                primary_key=>"id",
                primary_relation=>"note_id",
                link_options=>$link_options,
                object_ctl=>$object_ctl
));


$_OBJECT_IFACE_PANEL->insert_container ($_OBJECT_IFACE_LIST);

?>
